package b4.widget.humanBeing
{
	import flash.display.Sprite;
	import flash.filters.*;
	import flash.text.*;

	public class PerpertyTitle extends Sprite
	{
		private var propertyNumText:TextField;
		
		public function PerpertyTitle(propertyName:String, propertyNum:int)
		{
			super();
			//属性名字
			var propertyNameText:TextField = new TextField();
        	propertyNameText.autoSize = TextFieldAutoSize.LEFT;
			propertyNameText.defaultTextFormat = new TextFormat("微软雅黑", 14, 0xFFFF00);
			propertyNameText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			propertyNameText.selectable = false;
			propertyNameText.text = propertyName;
			addChild(propertyNameText);
			//属性名字
			propertyNumText = new TextField();
        	propertyNumText.autoSize = TextFieldAutoSize.LEFT;
			propertyNumText.defaultTextFormat = new TextFormat("微软雅黑", 14, 0xFFFFFF);
			propertyNumText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			propertyNumText.selectable = false;
			propertyNumText.x = 100;
			propertyNumText.text = propertyNum.toString();
			addChild(propertyNumText);
		}
		
		public function setPropertyNum(propertyNum:int):void
		{
			propertyNumText.text = propertyNum.toString();
		}
		
	}
}